-- GENERATED SPELL FOR [Durnholde Tracking Hound] --


function spell0_17840(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_17840', 606, 1)
end

function Sorts_17840(pUnit, Event)
local choix_sorts_17840 = math.random(0, 0)
if choix_sorts_17840 == 0 then
pUnit:RegisterEvent('spell0_17840', 1, 1)
end
end

function mob17840_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17840', math.random(1500, 3000), 1)
end

function mob17840_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17840_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17840_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17840, 1, 'mob17840_Action')
RegisterUnitEvent(17840, 2, 'mob17840_Leave')
RegisterUnitEvent(17840, 3, 'mob17840_Kill')
RegisterUnitEvent(17840, 4, 'mob17840_Die')
